import axios from "axios/index";

export async function intention(pageSize, page){
  const result = await axios.get('/api/upload/data?pageSize=' + pageSize + '&page=' + page);
  return result ? result : false
}

export async function status(token){
  const result = await axios.get('/api/upload/data/chart', {
    params: {
      api_token: token,
      name: 'intention'
    }
  });
  return result ? result : false;
}

export async function select(pageSize, page, status){
  const result = await axios.get('/api/upload/data?pageSize=' + pageSize + '&page=' + page + '&status$=' + status);
  return result ? result : false
}

// 查询
export async function query(token, phone){
  const result = await axios.get('/api/upload/data?api_token=' + token + '&phone$=%25' + phone);
  return result ? result : false
}